import React from 'react';

const addSchema = (key,title) => {
    arr.push({
      key: `${key}`,
      title: `${title}`,
      dataType: 'varchar',
      children: [
        {
          key: `${key}xsl`,
          title: '销售量',
          dataType: 'varchar',
        },
        {
          key: `${key}xse`,
          title: '销售额',
          dataType: 'varchar',
        },
        {
          key: `${key}M1`,
          title: 'M1',
          dataType: 'varchar',
        },
        {
          key: `${key}M2`,
          title: 'M2',
          dataType: 'varchar',
        },
        {
          key: `${key}M3`,
          title: 'M3',
          dataType: 'varchar',
        },
        {
          key: `${key}M3+`,
          title: 'M3+',
          dataType: 'varchar',
        },
        {
          key: `${key}M12+`,
          title: 'M12+',
          dataType: 'varchar',
        }
      ]
    })
}

let arr= [
  {
    key: 'zj',
    title: '',
    dataType: 'varchar',
  }
];

addSchema('fqyw', '分期业务');
addSchema('qbyw', '钱包业务');
addSchema('bbyw', '帮帮业务');

module.exports = arr;